home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 1.0 for Developers / QuickTime 1.0 for Developers.iso / Programming Stuff / Interfaces / Oldstyle C Interfaces / Movies Errors.h < prev    next >
C/C++ Source or Header  |  1991-09-06  |  2KB  |  101 lines

  1. /* Movies Errors.h
  2.     Error Codes
  3.  
  4.     by Jim Batson, Bruce Leak, David Van Brink, Peter Hoddie
  5.     Copyright 1990 Apple Computer, Inc. All rights reserved.
  6. */
  7.  
  8. #ifndef _MoviesErrors_
  9. #define _MoviesErrors_
  10.  
  11.  
  12. typedef enum {
  13.     firstMoviesError = -2000,
  14.  
  15.     couldNotResolveDataRef = -2000,
  16.     badImageDescription = -2001,
  17.     badPublicMovieAtom = -2002,
  18.     cantFindHandler = -2003,
  19.     cantOpenHandler = -2004,
  20.     badComponentType = -2005,
  21.     noMediaHandler = -2006,
  22.     noDataHandler = -2007,
  23.     invalidMedia = -2008,
  24.     invalidTrack = -2009,
  25.     invalidMovie = -2010,
  26.     invalidSampleTable = -2011,
  27.     invalidDataRef = -2012,
  28.     invalidHandler = -2013,
  29.     invalidDuration = -2014,
  30.     invalidTime = -2015,
  31.     cantPutPublicMovieAtom = -2016,
  32.     badEditList = -2017,
  33.     mediaTypesDontMatch = -2018,
  34.     progressProcAborted = -2019,
  35.     movieToolboxUninitialized = -2020,
  36.     wffileNotFound = -2021,
  37.     cantCreateSingleForkFile = -2022,            /* happens when file already exists */
  38.     invalidEditState = -2023,
  39.     nonMatchingEditState = -2024,
  40.     staleEditState = -2025,
  41.     userDataItemNotFound = -2026,
  42.     maxSizeToGrowTooSmall = -2027,
  43.     badTrackIndex = -2028,
  44.     trackIDNotFound = -2029,
  45.     trackNotInMovie = -2030,
  46.     timeNotInTrack = -2031,
  47.     timeNotInMedia = -2032,
  48.     badEditIndex = -2033,
  49.     internalQuickTimeError = -2034,
  50.     cantEnableTrack = -2035,
  51.     invalidRect = -2036,
  52.     invalidSampleNum = -2037,
  53.     invalidChunkNum = -2038,
  54.     invalidSampleDescIndex = -2039,
  55.     invalidChunkCache = -2040,
  56.     invalidSampleDescription = -2041,
  57.     
  58. /* this should probably be in its own range for data handlers */
  59.     dataNotOpenForRead = -2042,    
  60.     dataNotOpenForWrite = -2043,    
  61.     dataAlreadyOpenForWrite = -2044,
  62.     dataAlreadyClosed = -2045,
  63.     endOfDataReached = -2046,
  64.     dataNoDataRef = -2047,
  65.  
  66. /* private errors */
  67.     noMovieInDataFork = -2048,                    /* this is a private error */
  68.     
  69.     invalidDataRefContainer = -2049,
  70.     badDataRefIndex = -2050,
  71.     invalidBlob = -2051,
  72.  
  73.     couldNotUseAnExistingSample = -2052,
  74.     
  75.     featureUnsupported = -2053,
  76.  
  77.     lastMoviesError,
  78.     noRecordOfApp = movieToolboxUninitialized            /* replica */
  79.     }moviesErrors;
  80.  
  81.  
  82.  
  83. #endif _MoviesErrors_
  84.  
  85.  
  86. #ifndef _ComponentErrors_
  87. #define _ComponentErrors_
  88.  
  89.  
  90. typedef enum {
  91.     firstComponentError = -3000,
  92.     
  93.     invalidComponentID = firstComponentError,
  94.     validInstancesExist = -3001,
  95.     componentNotCaptured = -3002,
  96.     lastComponentError = -3003
  97.     }componentError;
  98.  
  99. #endif _ComponentErrors_
  100.  
  101.